// 经典继承
function SuperType(name) {
    this.colors = ['red', 'green', 'blue']
}

function SubType(name) {
    SuperType.call(this, name)
}

var instance1 = new SubType()
instance1.colors.push('pink')
console.log(instance1.colors); // ['red', 'green', 'blue']

var instance2 = new SubType('启明')
console.log(instance2);
